<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@page import="com.lmpop.frame.util.*" %>
<html>
	
	
<%
RandomID randomID = new RandomID();
String pos_id = randomID.GenTradeId();
	String cust_id="",user_id="";	
	if( session.getAttribute("session_cust_id") != null )
	{
		cust_id = session.getAttribute("session_cust_id").toString();
	}
	if( session.getAttribute("session_user_id") != null )
	{
		user_id = session.getAttribute("session_user_id").toString();
	}

String in_date=new Date().toLocaleString();


%>

	
	
  <head>
    <title>新增广告位</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script language="javascript" type="text/javascript" src="js_advpara.js"></script>
	</head>


<body>
	<h1>新增广告位</h1>
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab" >
		<tr>
			<td align="right" width="15%">
				广告位名称<font color="#ff0000">*</font>
			</td>
			<td style="padding-left:15px;" colspan="3">
				<input name="pos_name" id="pos_name" style="width:200px;" type="text" maxLength="50"/></td>
		</tr>
		
		<tr>
	      	  <td  align="right" width="15%">
					广告位类型<font color="#ff0000">*</font>
				</td>
				<td align="left" width="20%">
				
				<select name="adv_type" id="adv_type" style="width:200px;">
							<option value="">请选择</option>
							<option value=0>文字</option><option value=1>图片</option><option value=2>图文</option>
						</select>
				</td>
				
				<td align="right" width="15%">
					数量限制:
				</td align="left">
				<td>
					<input name="pos_num" id="pos_num" size="5" type="text"  onBlur="Num()"/>
				</td>
			</tr>
			
			
			
			
			
			   <tr>
					<td align="right" width="15%">
						文字限制:
					</td>
					 <td align="left" width="20%">
						
					 <input name="word_num" id="word_num" style="width:200px;" type="text" maxLength="35" onBlur="Num()"/></td>		 
						
						<td align="right" width="15%">
						价格<font color="#ff0000">*</font>
					</td align="left">
					<td>
					
					<input name="price" id="price" value="" maxLength="5" size="5" type="text" onBlur="Num()" />&nbsp;元/天</td>
					 
					 </td>
				</tr>	
				
		<tr>
			<td align="right" width="15%">
					页面地址:
			</td>
			<td align="left" style="padding-left:15px;" colspan="3">
			<input name="page_url" id="page_url" style="width:330px;" value="" maxLength="150" type="text" onBlur="IsURL()"/></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				无广告时显示:
			</td>
			<td align="left" style="padding-left:15px;" colspan="3">
				 <textarea name="no_show" id="no_show" cols="50" rows="6" onKeyUp="if(this.value.length > 150) this.value=this.value.substr(0,150)" ></textarea>
			</td>
		</tr>
		
		
		<tr>
			<td align="right" width="10%">
				广告位描述:
			</td>
			<td align="left" style="padding-left:15px;" colspan="3">
				
			<textarea name="content" id="content" cols="50" rows="6" onKeyUp="if(this.value.length > 150) this.value=this.value.substr(0,500)" ></textarea>
			
				
				</td>
		</tr>
		
		
			

	</table>
	<input name="in_date" id="in_date" type="hidden" value="<%=in_date%>" />
	<input name="state_code" id="state_code" type="hidden" value="0"/>
	<input name="user_id" id="user_id" type="hidden" value="<%=user_id%>"/>
	<input name="pos_id" id="pos_id" type="hidden" value="<%=pos_id%>"/>
	<input name="cust_id" id="cust_id" type="hidden" value="<%=cust_id%>"/>
	<input name="remark" id="remark" type="hidden" value=""	/>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="4553" />
				<input class="buttoncss" type="submit" name="tradeSub" value="提交" onclick="return subForm();" />&nbsp;&nbsp;
				<input class="buttoncss" type="button" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
